package com.cwnu.service.impl;

import com.cwnu.dao.UserMapper;
import com.cwnu.entity.User;
import com.cwnu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: mall-cwnu
 * @Titile: UserServiceImpl
 * @Author: Lucky
 * @Description: 用户业务层实现类
 */
@Service //业务层的注解
public class UserServiceImpl implements UserService {
    //注入数据访问层接口
    @Autowired
    private UserMapper userMapper;
    @Override
    public User login(String userName, String userPassword) {
        return userMapper.login(userName,userPassword);
    }
}
